<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>医院</title>
		<link href="style/css.css" rel="stylesheet" type="text/css" />
		<SCRIPT src="js/jquery.js" type="text/javascript"></SCRIPT>
		<SCRIPT src="js/color.js" type="text/javascript"></SCRIPT>
		<SCRIPT LANGUAGE="JavaScript">
		//加载窗体
            $(document).ready(function(){
            //得到科室
            	$.getJSON("type.do?method=getKeshi",function(data){
                            if (data.length != 0) {          
								//清空
                                $("#ks").html("<option value=''>请选择科室</option>");
                                for (i = 0; i < data.length; i++) {
									//追加option
                                    $("#ks").append("<option value=" + data[i].ks_id + ">" + data[i].ks_name + "</option>");
                                }
                            }
                           
                        });
               //当该变科室的值时,绑定对象
               $("#ks").bind("change", function(){
					//得到改变后的值
                    var getvalue = $("#ks option:selected").val(); 
                    if (getvalue != null) {
                    //得到科别
                        $.getJSON("type.do?method=getKebie", {ks_id: getvalue}, function(data){
                            if (data.length != 0) {
								//清空
                                $("#kb").html("<option value=''>请选择科别</option>");
                                for (i = 0; i < data.length; i++) {
									//追加option
                                    $("#kb").append("<option value=" + data[i].kb_id + ">" + data[i].kb_name + "</option>");
                                }
                            }
                        });
                    }
           			 });
           			 //当改变科别的值时,绑定对象
           		 $("#kb").bind("change", function(){
					//得到改变后的值
                    var getvalue = $("#kb option:selected").val(); 
                    if (getvalue != null) {
                    //得到医生名
                        $.getJSON("beforeRegister.do?method=getRegisterName", {kb_id: getvalue}, function(data){
                            if (data.length != 0) {
								//清空
                                $("#mytr").html("");
                               	$("#mytr").append( "<td>医生：</td>")
                                for (i = 0; i < data.length; i++) {
									//追加option
                                     $("#mytr").append("<td><a style='color:red' onclick='getDocTime(" + data[i].docid + ")' >" + data[i].docname  + "</a></td>");
                                }
                            }
                        });
                    }
           			 });
     				}	
				);
				var add="next";
			//当点击医生时,调用该方法
				function  getDocTime(did){
				//设置点击医生的值
				 $("#did").val(did);
				 //点击下星期安排的按钮执行next()方法
                   $("#anpai").one("click",function(){next();});
                   //下星期出诊隐藏
				   $("#nextcz").css("display","none");
				    $("#next").css("display","none");
				   //得到出诊时间
				   $.getJSON("beforeRegister.do?method=getRegisterTime", {docdid: did}, function(data){
				     if (data.length != 0) {
				     //预约的安排显示
				       $("#yuyue").css("display","block");
				       //清空
				     	$("#am").html("");
				     	$("#pm").html("");
				     	//追加td
				     	$("#am").append("<td width='36' height='63' align='center' valign='middle' bgcolor='#F6F9FB'>上<br />午</td>");
				     	$("#pm").append("<td width='36' height='63' align='center' valign='middle' bgcolor='#F6F9FB'>下<br />午</td>");
				        for (i = 0; i < data.length; i++) {
				        if(data[i].am==null){
				       		 data[i].am="休息";
				        }
				        if(data[i].pm==null){
				       		 data[i].pm="休息";
				        }
							$("#am").append("<td width=75 align=center valign=middle	bgcolor=#F6F9FB><a><span class=ztys_141414 id=a"+data[i].cid+" onclick=updateCz("+data[i].cid+",this,'am','a"+data[i].cid+"')>"+data[i].am+"</span></a></td>");
							$("#pm").append("<td width=75 align=center valign=middle	bgcolor=#F6F9FB><a><span class=ztys_141414 id=p"+data[i].cid+" onclick=updateCz("+data[i].cid+",this,'pm','p"+data[i].cid+"')>"+data[i].pm+"</span></a></td>");
						 }     
				     }else{
				  	  add="current";
				      $("#yuyue").css("display","none");
				      $("#next").css("display","block");
				     }
				   });
		}
		//更新出诊时间
		function updateCz(cid,obj,shijian,id){
		//得到您要修改前的值
		var value = obj.innerText;
		var xiuxi="休息";
		var chuzhen="出诊";
		//当您点击的是休息时,是否确定要出诊时则修改
		if(value==xiuxi || value=="n休息"){
		if(confirm("确定要改成出诊吗？")){
			value="chuzhen";
		$.ajax({
		  type: "post",
		  url: "beforeRegister.do?method=updateRegisterTime&cid=" + cid+"&str="+value+"&time="+shijian ,
		  dataType: "Json",
		  cache: false,
		  success: function(data){
		  if(value=="n休息"){
		 	$("#n"+id).text(data);
		  }else{
		  	$("#"+id).text(data);
		  	}
		  }
		});
		
		}
		}else{
		//当您点击的是出诊时,是否确定要休息时则修改
		if(confirm("确定改成要休息吗？")){
			value="xiuxi";
		$.ajax({
		  type: "post",
		  url: "beforeRegister.do?method=updateRegisterTime&cid=" + cid+"&str="+value+"&time="+shijian ,
		  dataType: "Json",
		  cache: false,
		  success: function(data){
		  if(value=="n出诊"){
		 	 $("#n"+id).text(data);
		  }else{
		  	 $("#"+id).text(data);
		  }
		  }
		});
		}
	}; 
}
							//点击下星期出诊时间
							function next(){
							$.ajax({
												  type: "post",
												  url: "beforeRegister.do?method=showRegisterTime&did=" + did.value,
												  dataType: "Json",
												  cache: false,
												  success: function(data){
												  if(data.length == 0){
												  //如果下星期未安排则添加表显示
												  	add="next";
												  	$("#next").css("display","block");
												  } else {
												  //如果下星期已安排则添加表不显示
    												$("#next").css("display","none")
    												//删除点击下星期安排的属性
    												$("#anpai").removeAttr("onclick");
    												//添加下星期的则显示
    												$("#nextcz").css("display","block");
    												//清空
    												$("#nam").html("");
											     	$("#npm").html("");
											     	//追加
											     	$("#nam").append("<td width='36' height='63' align='center' valign='middle' bgcolor='#F6F9FB'>上<br />午</td>");
											     	$("#npm").append("<td width='36' height='63' align='center' valign='middle' bgcolor='#F6F9FB'>下<br />午</td>");
											        for (i = 0; i < data.length; i++) {
											        //判断是否休息
											        if(data[i].am==null){
											       		 data[i].am="休息";
											        }
											        if(data[i].pm==null){
											       		 data[i].pm="休息";
											        }
														$("#nam").append("<td width=75 align=center valign=middle bgcolor=#F6F9FB><a><span class=ztys_141414 id=na" + data[i].cid + " value=n"+data[i].am + " onclick=updateCz("+data[i].cid+",this,'am','na"+data[i].cid+"')>"+data[i].am+"</span></a></td>");
														$("#npm").append("<td width=75 align=center valign=middle bgcolor=#F6F9FB><a><span class=ztys_141414 id=np" + data[i].cid + " value=n"+data[i].pm +" onclick=updateCz("+data[i].cid+",this,'pm','np"+data[i].cid+"')>"+data[i].pm+"</span></a></td>");
													 }     
    												
  												}
												  }
											}); 
							
							}
							//添加出诊
							function addCZ(){
							//上午出诊数组
											var am = new Array();
											for(var i = 1; i <= 7; i++){
												var sz =  document.getElementsByName("a"+i);
												//得到选中的值
												if(sz[0].checked){
													am[i-1] = sz[0].value;
												}else {
													am[i-1] = sz[1].value;
												}
											}
											//下午出诊数组
											var pm = new Array();
											for(var i = 1; i <= 7; i++){
												var sz =  document.getElementsByName("p"+i);
												//得到选中的值
												if(sz[0].checked){
													pm[i-1] = sz[0].value;
												}else {
												pm[i-1] = sz[1].value;
												}
											}
											//得到id
											var did=$("#did").val();
											 $.ajax({
												  type: "post",
												  url: "beforeRegister.do?method=addRegisterTime&did="+did+"&am="+am+"&pm="+pm +"&add="+add,
												  dataType: "Json",
												  success: function(data){
												  //下星期出诊的安排不显示
    												$("#next").css("display","none");
    												//添加安排的属性
    												$("#anpai").removeAttr("onclick");
    												//下星期的显示
    												$("#nextcz").css("display","block");
    												//清空
    												$("#nam").html("");
											     	$("#npm").html("");
											     	$("#nam").append("<td width='36' height='63' align='center' valign='middle' bgcolor='#F6F9FB'>上<br />午</td>");
											     	$("#npm").append("<td width='36' height='63' align='center' valign='middle' bgcolor='#F6F9FB'>下<br />午</td>");
											        for (i = 0; i < data.length; i++) {
											        if(data[i].am==null){
											       		 data[i].am="休息";
											        }
											        if(data[i].pm==null){
											       		 data[i].pm="休息";
											        }
														$("#nam").append("<td width=75 align=center valign=middle bgcolor=#F6F9FB><a><span class=ztys_141414 onclick=updateCz("+data[i].cid+",this,'am')>"+data[i].am+"</span></a></td>");
														$("#npm").append("<td width=75 align=center valign=middle bgcolor=#F6F9FB><a><span class=ztys_141414 onclick=updateCz("+data[i].cid+",this,'pm')>"+data[i].pm+"</span></a></td>");
													 }     
  												}
												  
											}); 
										}
            </SCRIPT>
	</head>

	<body>
		<style>
A.applink:hover {
	border: 2px dotted #DCE6F4;
	padding: 2px;
	background-color: #ffff00;
	color: green;
	text-decoration: none
}

A.applink {
	border: 2px dotted #DCE6F4;
	padding: 2px;
	color: #2F5BFF;
	background: transparent;
	text-decoration: none
}

A.info {
	color: #2F5BFF;
	background: transparent;
	text-decoration: none
}

A.info:hover {
	color: green;
	background: transparent;
	text-decoration: underline
}
</style>
		<table width="600" border="0" align="center" cellpadding="0"
			cellspacing="0" style="margin-top: 7px">
			<tr>
				<td width="11" align="left" valign="top">
					&nbsp;
				</td>
				<td width="567" align="left" valign="top" class="bk">
					<table width="567" border="0" cellpadding="0" cellspacing="0"
						style="margin-bottom: 20px">
						<tr>
							<td height="28" align="right" valign="top" bgcolor="#FFFFFF"
								class="ind_zhong_bj">
								<table width="536" border="0" cellspacing="0" cellpadding="0"
									style="margin-top: 4px; margin-right: 10px">
									<tr>
										<td align="left" valign="middle">
											<strong><font color="#0B5596">请选择相对应的科室</font> </strong>
										</td>
										<td>
											<span class="keshi"> <SELECT id="ks">
													<option value="">
														请选择科室
													</option>
												</SELECT> </span>
											<!--科别 -->
											<span class="kebie" id="kbs"> <SELECT id="kb"
													name="qtype">
													<option value="">
														请选择科别
													</option>
												</SELECT> </span>
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td align="left" valign="top" bgcolor="#FFFFFF">
								<table width="535" border="0" cellspacing="0" cellpadding="0"
									style="margin-top: 22px; margin-left: 16px">
									<tr id="mytr"></tr>

									<tr>
										<table style="display: none" id="yuyue">
											<tr>
												<td height="154" align="left" valign="top">
													<table width="547" border="0" cellpadding="0"
														cellspacing="1" bgcolor="#9BC8EB">
														<tr>
															<td width="36" height="26" bgcolor="#F6F9FB">
																&nbsp;
																<br />
															</td>
															<td width="75" align="center" valign="middle"
																bgcolor="#F6F9FB">
																<a
																	href="jyzn2.asp~info_kind=005&shijian=星期一&PP_p_xz=&select=.html"><span
																	class="ztys_141414">星期一</span> </a>
																<br />
															</td>
															<td width="70" align="center" valign="middle"
																bgcolor="#F6F9FB">
																<a
																	href="jyzn2.asp~info_kind=005&shijian=星期二&PP_p_xz=&select=.html"><span
																	class="ztys_FF0000">星期二</span> </a>
																<br />
															</td>
															<td width="71" align="center" valign="middle"
																bgcolor="#F6F9FB">
																<a
																	href="jyzn2.asp~info_kind=005&shijian=星期三&PP_p_xz=&select=.html"><span
																	class="ztys_141414">星期三</span> </a>
																<br />
															</td>
															<td width="72" align="center" valign="middle"
																bgcolor="#F6F9FB">
																<a
																	href="jyzn2.asp~info_kind=005&shijian=星期四&PP_p_xz=&select=.html"><span
																	class="ztys_141414">星期四</span> </a>
																<br />
															</td>
															<td width="69" align="center" valign="middle"
																bgcolor="#F6F9FB">
																<a
																	href="jyzn2.asp~info_kind=005&shijian=星期五&PP_p_xz=&select=.html"><span
																	class="ztys_141414">星期五</span> </a>
																<br />
															</td>
															<td width="72" align="center" valign="middle"
																bgcolor="#F6F9FB">
																<a
																	href="jyzn2.asp~info_kind=005&shijian=星期六&PP_p_xz=&select=.html"><span
																	class="ztys_141414">星期六</span> </a>
																<br />
															</td>
															<td width="73" align="center" valign="middle"
																bgcolor="#F6F9FB">
																<a
																	href="jyzn2.asp~info_kind=005&shijian=星期日&PP_p_xz=&select=.html"><span
																	class="ztys_141414">星期日</span> </a>
																<br />
															</td>
														</tr>
														<tr id="am">

														</tr>
														<tr id="pm">

														</tr>
													</table>
											</tr>
											<tr>
												<td width="40%" align="right">
													<a id="anpai" onclick="next()">下星期出诊安排&nbsp;&nbsp;&nbsp;&nbsp;</a>
												</td>
											</tr>
										</table>
									</tr>
									<tr>
										<td>
											<table id="nextcz" style="display: none">
												<tr>
													<td height="154" align="left" valign="top">
														<table width="547" border="0" cellpadding="0"
															cellspacing="1" bgcolor="#9BC8EB">
															<tr>
																<td width="36" height="26" bgcolor="#F6F9FB">
																	&nbsp;
																	<br />
																</td>
																<td width="75" align="center" valign="middle"
																	bgcolor="#F6F9FB">
																	<a
																		href="jyzn2.asp~info_kind=005&shijian=星期一&PP_p_xz=&select=.html"><span
																		class="ztys_141414">星期一</span> </a>
																	<br />
																</td>
																<td width="70" align="center" valign="middle"
																	bgcolor="#F6F9FB">
																	<a
																		href="jyzn2.asp~info_kind=005&shijian=星期二&PP_p_xz=&select=.html"><span
																		class="ztys_FF0000">星期二</span> </a>
																	<br />
																</td>
																<td width="71" align="center" valign="middle"
																	bgcolor="#F6F9FB">
																	<a
																		href="jyzn2.asp~info_kind=005&shijian=星期三&PP_p_xz=&select=.html"><span
																		class="ztys_141414">星期三</span> </a>
																	<br />
																</td>
																<td width="72" align="center" valign="middle"
																	bgcolor="#F6F9FB">
																	<a
																		href="jyzn2.asp~info_kind=005&shijian=星期四&PP_p_xz=&select=.html"><span
																		class="ztys_141414">星期四</span> </a>
																	<br />
																</td>
																<td width="69" align="center" valign="middle"
																	bgcolor="#F6F9FB">
																	<a
																		href="jyzn2.asp~info_kind=005&shijian=星期五&PP_p_xz=&select=.html"><span
																		class="ztys_141414">星期五</span> </a>
																	<br />
																</td>
																<td width="72" align="center" valign="middle"
																	bgcolor="#F6F9FB">
																	<a
																		href="jyzn2.asp~info_kind=005&shijian=星期六&PP_p_xz=&select=.html"><span
																		class="ztys_141414">星期六</span> </a>
																	<br />
																</td>
																<td width="73" align="center" valign="middle"
																	bgcolor="#F6F9FB">
																	<a
																		href="jyzn2.asp~info_kind=005&shijian=星期日&PP_p_xz=&select=.html"><span
																		class="ztys_141414">星期日</span> </a>
																	<br />
																</td>
															</tr>
															<tr id="nam">

															</tr>
															<tr id="npm">

															</tr>
														</table>
													</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<table style="display: none" id="next">
											<tr>
												<td height="28" align="right" valign="top" bgcolor="#FFFFFF"
													class="ind_zhong_bj" id="next">
													<table width="536" border="0" cellspacing="0"
														cellpadding="0"
														style="margin-top: 4px; margin-right: 10px">
														<tr>
															<td align="left" valign="middle">
																<strong><font color="#0B5596">请添加医生出诊时间</font>
																</strong>
															</td>
														</tr>
													</table>
												</td>
											</tr>
											<tr>
												<td align="left" valign="top" bgcolor="#FFFFFF">
													<form action="" method="post" name="CZam" id="CZam">
														<table width="535" border="0" cellspacing="0"
															cellpadding="0"
															style="margin-top: 22px; margin-left: 16px">
															<tr>
																<table>
																	<tr>
																		<td height="154" align="left" valign="top">
																			<table width="547" border="0" cellpadding="0"
																				cellspacing="1" bgcolor="#9BC8EB">
																				<tr>
																					<td width="36" height="26" bgcolor="#F6F9FB">
																						&nbsp;
																						<br />
																					</td>
																					<td width="75" align="center" valign="middle"
																						bgcolor="#F6F9FB">
																						<a
																							href="jyzn2.asp~info_kind=005&shijian=星期一&PP_p_xz=&select=.html"><span
																							class="ztys_141414">星期一</span> </a>
																						<br />
																					</td>
																					<td width="70" align="center" valign="middle"
																						bgcolor="#F6F9FB">
																						<a
																							href="jyzn2.asp~info_kind=005&shijian=星期二&PP_p_xz=&select=.html"><span
																							class="ztys_FF0000">星期二</span> </a>
																						<br />
																					</td>
																					<td width="71" align="center" valign="middle"
																						bgcolor="#F6F9FB">
																						<a
																							href="jyzn2.asp~info_kind=005&shijian=星期三&PP_p_xz=&select=.html"><span
																							class="ztys_141414">星期三</span> </a>
																						<br />
																					</td>
																					<td width="72" align="center" valign="middle"
																						bgcolor="#F6F9FB">
																						<a
																							href="jyzn2.asp~info_kind=005&shijian=星期四&PP_p_xz=&select=.html"><span
																							class="ztys_141414">星期四</span> </a>
																						<br />
																					</td>
																					<td width="69" align="center" valign="middle"
																						bgcolor="#F6F9FB">
																						<a
																							href="jyzn2.asp~info_kind=005&shijian=星期五&PP_p_xz=&select=.html"><span
																							class="ztys_141414">星期五</span> </a>
																						<br />
																					</td>
																					<td width="72" align="center" valign="middle"
																						bgcolor="#F6F9FB">
																						<a
																							href="jyzn2.asp~info_kind=005&shijian=星期六&PP_p_xz=&select=.html"><span
																							class="ztys_141414">星期六</span> </a>
																						<br />
																					</td>
																					<td width="73" align="center" valign="middle"
																						bgcolor="#F6F9FB">
																						<a
																							href="jyzn2.asp~info_kind=005&shijian=星期日&PP_p_xz=&select=.html"><span
																							class="ztys_141414">星期日</span> </a>
																						<br />
																					</td>
																				</tr>
																				<tr>
																					<td width='36' height='63' align='center'
																						valign='middle' bgcolor='#F6F9FB'>
																						上
																						<br />
																						午
																					</td>
																					<td width=75 align=center valign=middle
																						bgcolor=#F6F9FB>
																						<span class=ztys_141414> 休息<input
																								type="radio" name="a1" value="xx" checked /> <br />
																							出诊<input type="radio" name="a1" value="cz" /> </span>
																					</td>
																					<td width=75 align=center valign=middle
																						bgcolor=#F6F9FB>
																						<span class=ztys_141414> 休息<input
																								type="radio" name="a2" value="xx" checked /> <br />
																							出诊<input type="radio" name="a2" value="cz" /> </span>
																					</td>
																					<td width=75 align=center valign=middle
																						bgcolor=#F6F9FB>
																						<span class=ztys_141414> 休息<input
																								type="radio" name="a3" value="xx" checked /> <br />
																							出诊<input type="radio" name="a3" value="cz" /> </span>
																					</td>
																					<td width=75 align=center valign=middle
																						bgcolor=#F6F9FB>
																						休息
																						<input type="radio" name="a4" value="xx" checked />
																						<br />
																						出诊
																						<input type="radio" name="a4" value="cz" />
																					</td>
																					<td width=75 align=center valign=middle
																						bgcolor=#F6F9FB>
																						<span class=ztys_141414> 休息<input
																								type="radio" name="a5" value="xx" checked /> <br />
																							出诊<input type="radio" name="a5" value="cz" /> </span>
																					</td>
																					<td width=75 align=center valign=middle
																						bgcolor=#F6F9FB>
																						<span class=ztys_141414> 休息<input
																								type="radio" name="a6" value="xx" checked /> <br />
																							出诊<input type="radio" name="a6" value="cz" /> </span>
																					</td>
																					<td width=75 align=center valign=middle
																						bgcolor=#F6F9FB>
																						<span class=ztys_141414> 休息 <input
																								type="radio" name="a7" value="xx" checked /> <br />
																							出诊 <input type="radio" name="a7" lue="cz" /> </span>
																					</td>

																				</tr>
																				<tr>
																					<td width='36' height='63' align='center'
																						valign='middle' bgcolor='#F6F9FB'>
																						下
																						<br />
																						午
																					</td>
																					<td width=75 align=center valign=middle
																						bgcolor=#F6F9FB>
																						<span class=ztys_141414> 休息<input
																								type="radio" name="p1" value="xx" checked /> <br />
																							出诊<input type="radio" name="p1" value="cz" /> </span>
																					</td>
																					<td width=75 align=center valign=middle
																						bgcolor=#F6F9FB>
																						<span class=ztys_141414> 休息<input
																								type="radio" name="p2" value="xx" checked /> <br />
																							出诊<input type="radio" name="p2" value="cz" /> </span>
																					</td>
																					<td width=75 align=center valign=middle
																						bgcolor=#F6F9FB>
																						<span class=ztys_141414> 休息<input
																								type="radio" name="p3" value="xx" checked /> <br />
																							出诊<input type="radio" name="p3" value="cz" /> </span>
																					</td>
																					<td width=75 align=center valign=middle
																						bgcolor=#F6F9FB>
																						<span class=ztys_141414> 休息<input
																								type="radio" name="p4" value="xx" checked /> <br />
																							出诊<input type="radio" name="p4" value="cz" /> </span>
																					</td>
																					<td width=75 align=center valign=middle
																						bgcolor=#F6F9FB>
																						<span class=ztys_141414> 休息<input
																								type="radio" name="p5" value="xx" checked /> <br />
																							出诊<input type="radio" name="p5" value="cz" /> </span>
																					</td>
																					<td width=75 align=center valign=middle
																						bgcolor=#F6F9FB name="pp6">
																						<span class=ztys_141414> 休息<input
																								type="radio" name="p6" value="xx" checked /> <br />
																							出诊<input type="radio" name="p6" value="cz" /> </span>
																					</td>
																					<td width=75 align=center valign=middle
																						bgcolor=#F6F9FB>
																						<span id="kkk" class=ztys_141414> 休息 <input
																								type="radio" name="p7" value="xx" checked /> <br />
																							出诊 <input type="radio" name="p7" value="cz" /> </span>
																					</td>

																				</tr>

																			</table>
																		</td>
																	</tr>

																	<tr>
																		<td colspan="8" class=ztys_141414 bgcolor=#F6F9FB>
																			<center>
																				<input type="button" value="添加" onclick="addCZ()" />
																			</center>
																		</td>
																	</tr>
																</table>
															</tr>
														</table>
													</form>
												</td>
											</tr>

										</table>

									</tr>
								</table>
								<input type="hidden" name="did" id="did" value="" />
	</body>
</html>
